<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>内置对象</title>
</head>
<body>
     <h1>域内置对象</h1>
<!--     session 直接可以获取到的-->
     <div th:object="${session.user}">
       <div th:text="*{name}"></div>
     </div>
     <h1>其他方法</h1>
     <div th:text="${date}"></div>
     <div th:text="${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}"></div>
     <div >[[${#dates.format(date,'yyyy-MM-dd HH:mm:ss')}]]</div>
</body>
</html>